/*
 *  $TEAM_NAME Space Trader
 */
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import views.TitlePanel;
import presenters.TitlePresenter;

/**
 * The space trader class in the bootstrapping class in space trader. It
 * contains the main method that creates and runs the game.
 * @author bradley
 * @version 1.0
 */
public class SpaceTrader extends JFrame {
	/**
	 * 100
	 */
	public static final int HUNDRED = 100;
	
	/**
	 * 450
	 */
	public static final int FOURFIFTY = 450;
	
	/**
	 * 600
	 */
	public static final int SIXHUNDRED = 600;
	
	/**
	 * field
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * field
	 */
	private final JPanel contentPane;

	/**
	 * Launch the application.
	 * @param args - command line arguments
	 */
	public static void main(String[] args) {
        final SpaceTrader frame = new SpaceTrader();
        frame.setVisible(true);
    }

    /**
     * Creates a new instance of the space trader game
     */
    public SpaceTrader() {
        super.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        super.setBounds(HUNDRED, HUNDRED, FOURFIFTY, SIXHUNDRED);

        contentPane = new JPanel();
        contentPane.setBorder(null);
        contentPane.setLayout(new BorderLayout(0, 0));

        super.setContentPane(contentPane);

        final TitlePanel titlePanel = new TitlePanel();
        final TitlePresenter titlePresenter = new TitlePresenter(titlePanel);

        titlePresenter.setFrame(this);
        titlePresenter.present(titlePresenter);
    }
}
